import { ElMessage } from 'element-plus'

const tipMessage = (msg, type, duration = 2000) => {
  ElMessage({
    showClose: true,
    grouping: true,
    message: msg,
    type: type,
    duration
  })
}
export default tipMessage
